<?php
//模块儿管理
Route::group(['prefix'=>'admin','namespace'=>'Admin','as'=>'admin.'],function (){
    Route::resource('module','ModuleController');
    Route::get('permission','PermissionController@index')->name('permission.index');
    Route::resource('role','RoleController');
    //角色---权限路由设置
    Route::get('role/{role}/permission','RoleController@editpermision')->name('role.permission');
    Route::post('role/{role}/permission','RoleController@updatepermission')->name('role.permission');
    //用户---角色路由设置
    Route::resource('user_role','UserRoleController');
    //系统配置相关路由
    Route::get('config/{name}','ConfigController@edit')->name('config');
    Route::put('config/{name}','ConfigController@update')->name('config');
});
